/*
 PureMVC Javascript Objs Employee Admin Demo for jQuery
 by Frederic Saunier <frederic.saunier@puremvc.org> 
 PureMVC - Copyright(c) 2006-12 Futurescale, Inc., Some rights reserved.
 Your reuse is governed by the Creative Commons Attribution 3.0 License
*/

/**
 * @class
 * Configure and initialize model for the application.
 *
 * @extends org.puremvc.js.patterns.command.SimpleCommand SimpleCommand
 *
 * @constructor
 */
var PrepModelCommand = Objs("controller.PrepModelCommand",
	SimpleCommand,
{	
	/**
	 * @override
	 */
	execute: function( note )
	{
	       switch(current_page)
                {
                    case 'dashboard':
                           this.facade.registerProxy( new VehicleProxy( ProxyNames.VEHICLE_PROXY) );
							//this.facade.registerProxy( new XmlProxy( ProxyNames.XML_PROXY));
                           break;
                    case 'vehicle_list':
                          this.facade.registerProxy( new VehicleProxy( ProxyNames.VEHICLE_PROXY) );
							this.facade.registerProxy( new InitialListProxy( ProxyNames.INITIAL_LIST_PROXY));
                           break;
                           case 'view_page':
                            this.facade.registerProxy( new VehicleProxy( ProxyNames.VEHICLE_PROXY) );
						this.facade.registerProxy( new InitialAssetsProxy( ProxyNames.INITIAL_PROXY));
                        break;
                    case 'info_page':
                        this.facade.registerProxy( new VehicleProxy( ProxyNames.VEHICLE_PROXY) );
						this.facade.registerProxy( new InitialAssetsProxy( ProxyNames.INITIAL_PROXY));
                        break;
					case 'superadmin':
                        this.facade.registerProxy( new AdminSummaryProxy( ProxyNames.ADMINSUMMARY_PROXY) );
                        this.facade.registerProxy( new MakeProxy( ProxyNames.MAKE_PROXY) );
                        this.facade.registerProxy( new ModelProxy( ProxyNames.MODEL_PROXY) );
                        this.facade.registerProxy( new SearchSortProxy( ProxyNames.SEARCHSORT_PROXY) );
                        this.facade.registerProxy( new AddresourceProxy( ProxyNames.ADDRESOURCE_PROXY) );
                        this.facade.registerProxy( new StatusProxy( ProxyNames.STATUS_PROXY) );
                        this.facade.registerProxy( new UserProxy( ProxyNames.USER_PROXY) );
                        this.facade.registerProxy( new CompanyProxy( ProxyNames.COMPANY_PROXY) );
							//this.facade.registerProxy( new XmlProxy( ProxyNames.XML_PROXY));
                          break;
						  
					case 'locked_vehicles':
						this.facade.registerProxy( new VehicleProxy( ProxyNames.VEHICLE_PROXY) );
						break;
						
					case 'reports':
						this.facade.registerProxy( new VehicleProxy( ProxyNames.VEHICLE_PROXY) );
						break;
						
                          
                }
		
		
	},
	 
});